package com.cleaningcloud.cld.domain;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 结算管理对象 cld_settlement
 *
 * @author cleaningcloud
 * @date 2024-10-17
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CldSettlement extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 结算ID
     */
    private Long settlementId;

    /**
     * 发票ID
     */
    private Long invoiceId;

    /**
     * 坏账金额
     */
    private BigDecimal baddebtMoney;

    /**
     * 实收金额
     */
    @Excel(name = "实收金额", sort = 7)
    private BigDecimal receivedMoney;

    /**
     * 结算日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "应结算日期", width = 30, dateFormat = "yyyy-MM-dd", sort = 9)
    private Date settlementDate;

    /**
     * 收款状态(0未收款1已收款)
     */
    private Long collectionStatus;

    /**
     * 收款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收款日期", width = 30, dateFormat = "yyyy-MM-dd", sort = 10)
    private Date collectionTime;


    /**
     * 是否烂账(0否1是)
     */
    private Long isMashed;
}
